package com.central.scheduler.api.service;

import com.central.common.model.PageResult;
import com.central.common.model.Result;
import com.central.common.model.SysUser;
import com.central.common.service.ISuperService;
import com.central.scheduler.dao.model.ProcessInstance;
import com.central.scheduler.dao.model.TaskInstance;

import java.util.List;
import java.util.Map;

/**
 * @author Tindy
 * @date 2021/7/3
 * @describe
 */
public interface ITaskInstanceService extends ISuperService<TaskInstance> {

    PageResult<TaskInstance> queryTaskInstances(Map<String, Object> params);

    List<TaskInstance> findTaskInstances(Long proId, Long processInstanceId);

    Result forceTaskSuccess(SysUser user, Long taskInstanceId);
}